package persistence.dto;

import core.ProductGroup;

public class ProductGroupDTO
{

	private int id;
	private String name;
	private String type;
	private int parentID;
	private float threeMonthNum;
	private String threeMonthType;
	
	/**
	 * Instantiates a new Product Group DTO
	 * @param id - unique id assigned to the PG
	 * @param name - name of the PG
	 * @param parentID the unique id of the parent container
	 * @param threeMonthNum the three month supply float
	 * @param threeMonthType the type of three month supply
	 */
	public ProductGroupDTO(int id, String name, int parentID, 
			float threeMonthNum, String threeMonthType)
	{
		this.id = id;
		this.name = name;
		this.type = "product container";
		this.parentID = parentID;
		this.threeMonthNum = threeMonthNum;
		this.threeMonthType = threeMonthType;
	}

	/**
	 * returns the unique id assigned to this product group
	 * @return the unique id
	 */
	public int getId()
	{
		return id;
	}

	/**
	 * gets the name of the product group
	 * @return
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * gets the type of the product group
	 * @return the type
	 */
	public String getType()
	{
		return type;
	}

	/**
	 * returns the unique id of the parent container
	 * @return the parent's unique id
	 */
	public int getParentID()
	{
		return parentID;
	}

	/**
	 * gets the three month float value
	 * @return the three month number
	 */
	public float getThreeMonthNum()
	{
		return threeMonthNum;
	}

	/**
	 * gets the three month type
	 * @return the three month type
	 */
	public String getThreeMonthType()
	{
		return threeMonthType;
	}

}
